﻿<UserControl x:Class="BizControl.Presentation.ParticipantsModule.Views.ParticipantsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:controls="clr-namespace:BizControl.Presentation.Infrastructure.Controls;assembly=BizControl.Presentation.Infrastructure">
    <UserControl.Resources>
        <DataTemplate x:Key="ParticipantsListBoxTemplate">
            <Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource BorderLightBrush}">
                <Grid>
                    <controls:CurrentUserControl DataContext="{Binding Path=Person}" />
                </Grid>
            </Border>
        </DataTemplate>
    </UserControl.Resources>

    <Grid>
        <ListBox Style="{StaticResource DefaultListBoxStyle}" 
                 ItemTemplate="{StaticResource ParticipantsListBoxTemplate}"
                 ItemsSource="{Binding Model}" />
    </Grid>
</UserControl>
